package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/2/8 9:30
 * Dest
 */

public class DepositBean implements Parcelable {

    /**
     * id : 6
     * sum : 10000
     * houseId : 80
     * coupon : null
     */
    private int id;
    private double sum;
    private String houseId;
    private String coupon;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeDouble(this.sum);
        dest.writeString(this.houseId);
        dest.writeString(this.coupon);
    }

    public DepositBean() {
    }

    protected DepositBean(Parcel in) {
        this.id = in.readInt();
        this.sum = in.readDouble();
        this.houseId = in.readString();
        this.coupon = in.readString();
    }

    public static final Creator<DepositBean> CREATOR = new Creator<DepositBean>() {
        @Override
        public DepositBean createFromParcel(Parcel source) {
            return new DepositBean(source);
        }

        @Override
        public DepositBean[] newArray(int size) {
            return new DepositBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getSum() {
        return sum;
    }

    public void setSum(double sum) {
        this.sum = sum;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public String getCoupon() {
        return coupon;
    }

    public void setCoupon(String coupon) {
        this.coupon = coupon;
    }
}
